package com.rowling.factory;

import javax.lang.model.element.Element;

/**
 * 包装类，处理异常，元素导致的异常
 */
public class ProcessorException extends Exception {

    Element element;

    public ProcessorException(Element element,String msg, Object... args) {
        super(String.format(msg,args));
        this.element = element;
    }

    public Element getElement(){
        return element;
    }
}
